package com.xiaodu.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author: dutianjie
 * @date: 2021/4/15
 * @version: v1.0.0
 * @description: 描述
 **/
public class MyServletFilter2 implements Filter {


    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println("filter2 init" + filterConfig.getInitParameter("filter2"));
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("myFilter 2");
        chain.doFilter(request, response);
    }

    @Override
    public void destroy() {

    }
}
